
from datetime import datetime
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from applications.exts import db


# 轮播图表
class Bands(db.Model):
    __tablename__ = 'bands'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='轮播图表id')
    photo=db.Column(db.String(99),comment='轮播图图片')
    name=db.Column(db.String(60),comment='轮播图名称')
    enable=db.Column(db.Integer,default=0,comment='启用')

    def __str__(self):
        return self.id